package tp_imag.service.impl;

public class Resultante {

	private int xDirector = 0;
	private int yDirector = 0;
	public int getXDirector() {
		return xDirector;
	}
	public void setXDirector(int director) {
		xDirector = director;
	}
	public int getYDirector() {
		return yDirector;
	}
	public void setYDirector(int director) {
		yDirector = director;
	}
	
	public VectorDirector calcularResultante( Coordenada a, Coordenada b){
		
		return new VectorDirector(a.getX()-b.getX(),a.getY()-b.getY()); 
	}
}
